package com.wzd.shoppingService.model.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * 广告表 
 *
 * @author WeiZiDong
 */
@Table(name = "`sms_advertise`")
@Data
@ApiModel("广告表")
public class SmsAdvertise implements Serializable {
    @Id
    @Column(name = "`id`")
    @ApiModelProperty(value = "ID", example = "String")
    private String id;
    @Column(name = "`name`")
    @ApiModelProperty(value = "广告名称", example = "String")
    private String name;
    @Column(name = "`type`")
    @ApiModelProperty(value = "轮播位置1-&gt;首页轮播；2-一级分类；3-二级分类；4-委托采购；5-团购；6-在线拍卖；7-特价促销", example = "1")
    private Integer type;
    @Column(name = "`pic`")
    @ApiModelProperty(value = "广告图片", example = "String")
    private String pic;
    @Column(name = "`jump_type`")
    @ApiModelProperty(value = "跳转类型1-内部跳转；2-外部跳转", example = "1")
    private Integer jumpType;
    @Column(name = "`jump_value_type`")
    @ApiModelProperty(value = "跳转值数据类型1-商品；2-一级分类；3-二级分类；", example = "1")
    private Integer jumpValueType;
    @Column(name = "`url`")
    @ApiModelProperty(value = "跳转值链接地址", example = "String")
    private String url;
    @Column(name = "`weight_value`")
    @ApiModelProperty(value = "权重值越小排在越前", example = "1")
    private Integer weightValue;
    @Column(name = "`delete_status`")
    @ApiModelProperty(value = "删除状态0-&gt;未删除；1-&gt;已删除", example = "1")
    private Integer deleteStatus;
    @Column(name = "`revision`")
    @ApiModelProperty(value = "乐观锁", example = "1")
    private Integer revision;
    @Column(name = "`create_by`")
    @ApiModelProperty(value = "创建人", example = "String")
    private String createBy;
    @Column(name = "`create_time`")
    @ApiModelProperty(value = "创建时间", example = "2019-05-05 17:55:31")
    private Date createTime;
    @Column(name = "`update_by`")
    @ApiModelProperty(value = "更新人", example = "String")
    private String updateBy;
    @Column(name = "`update_time`")
    @ApiModelProperty(value = "更新时间", example = "2019-05-05 17:55:31")
    private Date updateTime;

    private static final long serialVersionUID = 1L;
}
